www.gusucode.com > 酷维企业网站CMS管理系统 v2.1.0 > 酷维企业网站CMS管理系统 v2.1.0\code\NewsAdmin\about.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->

<% 
if request("w")="qq" then 
id=request("id")
nr=request("nr")
set rs= Server.CreateObject("adodb.recordset")
sql="select * from about where id="&id
rs.open sql,conn,1,3
rs("nr")=nr
rs.update
%>
<script language="javascript1.2">
alert("<%= request("bt") %>!修改成功!")
window.location="about.asp?id=<%= id %>"
</script>
<%
else 
id=request("id")
set rs= Server.CreateObject("adodb.recordset")
sql="select * from about where id="&id
rs.open sql,conn,1,3
end if 
  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #000000;
}
-->
</style></head>

<body>
<form id="form1" name="form1" method="post" action="about.asp?w=qq">
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5580D5">
    <tr>
      <td height="28" align="center" background="images/admin_bg_1.gif"><b><font color="#FFFFFF"><%=rs("bt")%>-修改
        <input name="bt" type="hidden"  value="<%=rs("bt")%>" id="bt" />
      </font></b></td>
    </tr>
    <tr>
      <td height="327" align="center" bgcolor="#FFFFFF">
	  <textarea id="nr" name="nr" style="display:none"><%=rs("nr")%></textarea>
      <iframe id="eWebEditor1" src="ubb/ewebeditor.asp?id=nr&amp;style=standard_coolblue1" frameborder="0" scrolling="No" width="800" height="500"></iframe>
      
      <input name="id" type="hidden" id="id" value="<%=rs("id")%>" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="保  存" />
      &nbsp;&nbsp;&nbsp;  <input type="reset" name="Submit2" value="重  置" /></td>
    </tr>
  </table>
</form><!--#include file="boom.asp" -->
</body>
</html>